package service

import (
	"context"
	"mall-portalv2/internal/model"
)

func (s *Service) QueryUmsMemberReceiveAddressAllWhereMemberID(ctx context.Context, id int64) ([]model.UmsMemberReceiveAddress, error) {
	result, err := s.dao.QueryUmsMemberReceiveAddressAllWhereMemberID(ctx, id)
	if err != nil {
		return []model.UmsMemberReceiveAddress{}, err
	}
	return result, err
}

func (s *Service) QueryUmsMemberReceiveAddressWhereID(ctx context.Context, id int64) (model.UmsMemberReceiveAddress, error) {
	result, err := s.dao.QueryUmsMemberReceiveAddressWhereID(ctx, id)
	if err != nil {
		return model.UmsMemberReceiveAddress{}, err
	}
	return result, err
}
